package com.chaosj.webmagic;

/**
 * @className: IScrapeHandler
 * @description:
 * @author: caoyangjie
 * @date: 2021/8/11
 **/
public interface IScrapeHandler<Req,Res> {
    /**
     * 根据请求对象获取 响应对象
     * @param request
     * @return
     */
    void scrape(Req request);

    /**
     * 获取响应结果
     * @Req req
     * @return
     */
    Res getResult(Req req);
}
